package dao;

import main.DataTransferObject;

public interface AlgorithmDAO {

	/**
	 * Creates or updates an entry in the database based on the algorithm name
	 * held in the DTO.
	 * @param inDTO
	 * @return boolean whether or not the transaction was successful
	 */
	public boolean createOrUpdate(DataTransferObject inDTO);
	
	/**
	 * Creates or updates an entry in the database based on the algorithm name
	 * passed in.
	 * @param algorithmName
	 * @return boolean whether or not the transaction was successful
	 */
	public boolean createOrUpdate(String algorithmName);
	
	/**
	 * Gets any data associated with a given algorithm name, like the algorithm ID.
	 * 
	 * @param algorithmName
	 * @return
	 */
	public DataTransferObject getAlgorithmFromName(String algorithmName);
}
